/*
 * @(#)SpringContextUtil.java
 *
 * Copyright 2012 by ShenY BIS, All rights reserved.
 */

package com.bis.framework.util.common;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * SpringContextUtil
 * 
 * @author BIS 2012-12-24
 */
public class SpringContextUtil implements ApplicationContextAware
{
    /**
     * ctx
     */
    private static ApplicationContext ctx;

    /**
     * setApplicationContext
     */
    public void setApplicationContext(ApplicationContext ctx) throws BeansException
    {
        SpringContextUtil.ctx = ctx;
    }

    /**
     * getCtx
     * @Description:
     * @return
     */
    public static ApplicationContext getCtx()
    {
        return ctx;
    }

}
